{extend name="public/menu2" /}
{block name='title'}-{$cur.name}{/block}

{block name='content'}
<div class="right_content">
    <!-- 历史业绩 -->
    <p class="cell_title">{$content[0]['title'] ?: ''}<span>:::</span></p>
    <ul class="tips">
        {foreach $content[0]['content'] as $c}
        <li>
            <p class="data">
                <span>{$c.content.title ?: '0'}</span>
                <small></small>
            </p>
            <p class="title">{$c.content.title2 ?: ''}</p>
        </li>
        {/foreach}
    </ul>
</div>
</div>

<!-- 经营现状 -->
<div class="cell bg_grey">
    <div class="cell_content">
        <p class="cell_title">{$content[1]['title'] ?: ''}<span>:::</span></p>
        {$content[1]['content']['content']|raw|default=''}
    </div>
</div>
<!-- 合作学校 -->
<div class="cell school">
    <div class="cell_content">
        <p class="cell_title">{$content[2]['title'] ?: ''}<span>:::</span></p>
        <ul>
            {foreach $content[2]['content'] as $cck=>$c}
            {if $cck<20}
            <li class="a_row">{$c.content.title ?: ''}</li>
            {/if}
            {/foreach}
        </ul>
        <div class="more_box">
            <a class="more" href='{:url("/school")}'>
                <span>查看更多</span>
                <img style="width: 20px;" src="__STATIC__/index/img/more2.png" alt="">
            </a>
        </div>
    </div>
</div>
<!-- 用户评价 -->
<div class="cell evaluate bg_grey">
    <div class="cell_content">
        <div class="fr">
            <!-- 如果需要导航按钮 -->
            <div class="swiper-button-prev"></div>
            <div class="swiper-button-next"></div>
        </div>
        <p class="cell_title">{$content[3]['title'] ?: ''}<span>:::</span></p>
        <div class="swiper-container">
            <div class="swiper-wrapper">
                {foreach $content[3]['content'] as $c}
                <div class="swiper-slide">
                    <p class="image">
                        <!--poster 视频封面图 不传默认为视频第一帧 preload 视频是否预加载 不添加则不加载 -->
                        <video id="video" controls="controls" src="{$c.content.video ?: ''}" poster="{$c.content.thumb ?: ''}"  playsinline="true" webkit-playsinline="true"></video>
                    </p>
                    <p class="title">{$c.content.title ?: ''}</p>
                    <div class="ev">
                        <img src="__STATIC__/index/img/quotesLeft.png" alt="">
                        <p class="a_row">{$c.content.title2 ?: ''}</p>
                        <img src="__STATIC__/index/img/quotesRight.png" alt="">
                    </div>
                </div>
                {/foreach}
            </div>
        </div>
        <!-- 分页器 -->
        <div class="swiper-pagination"></div>
    </div>
</div>

{/block}

{block name='script'}
<link rel="stylesheet" href="__STATIC__/index/css/companyAchievement.css">
<script src="__STATIC__/index/js/swiper.min.js"></script>
<script>
    $(function () {
        var mySwiper = new Swiper('.swiper-container', {
            watchOverflow: true, //因为仅有1个slide，swiper无效
            slidesPerView: 3,
            slidesPerGroup: 3,
            spaceBetween: 25,
            // 如果需要分页器
            pagination: {
                el: '.swiper-pagination',
            },
            // 如果需要前进后退按钮
            navigation: {
                nextEl: '.swiper-button-next',
                prevEl: '.swiper-button-prev',
            },
        });
    })
</script>

{/block}